window.onload = function () {

   var check = document.querySelectorAll('.eve_shopping_in_one_business_radius')
   console.log(check)
   for (var i = 0; i < check.length; i++) {
      check[i].addEventListener('click', function (e) {
         console.log(check[i])
         e.preventDefault()
         check[i].style.backgroundColor = 'rgb(240, 105, 56)'
      })
   }
   var addShopping = document.querySelectorAll('.eve_shopping_in_two_calculate_r')
   var deleteShopping = document.querySelectorAll('.eve_shopping_in_two_calculate_l')
   var innerPrice = document.querySelectorAll('.eve_shopping_in_two_calculate_m')
   var orignNumber = Number(innerPrice.innerText)
   for (var i = 0; i < addShopping.length; i++) {
      addShopping[i].addEventListener('click', function () {
         var calucate = Number(innerPrice.innerText)
         if (calucate > 0) {
            calucate += orignNumber
            innerPrice.innerText = calucate
         } else {
         }
      })
   }
   for (var i = 0; i < addShopping.length; i++) {
      deleteShopping[i].addEventListener('click', function () {
         var calucate = Number(innerPrice.innerText)
         if (calucate > 0) {
            calucate -= orignNumber
            innerPrice.innerText = calucate
         } else {
         }
      })
   }
}